﻿<phone:PhoneApplicationPage x:Class="NokiaDev.RadControlsSample.About"
                            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                            xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                            xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                            xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
                            xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
                            xmlns:viewModels="clr-namespace:NokiaDev.RadControlsSample.ViewModels"
                            Name="Root"
                            FontFamily="{StaticResource PhoneFontFamilyNormal}"
                            FontSize="{StaticResource PhoneFontSizeNormal}"
                            Foreground="{StaticResource PhoneForegroundBrush}"
                            Orientation="Portrait"
                            SupportedOrientations="Portrait"
                            d:DesignHeight="768"
                            d:DesignWidth="480"
                            shell:SystemTray.IsVisible="True"
                            mc:Ignorable="d">

    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.DataContext>
            <viewModels:CommandSampleViewModel />
        </Grid.DataContext>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <StackPanel x:Name="TitlePanel"
                    Grid.Row="0"
                    Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle"
                       Style="{StaticResource PhoneTextNormalStyle}"
                       Text="APP TITLE" />
            <TextBlock x:Name="PageTitle"
                       Margin="9,-7,0,0"
                       Style="{StaticResource PhoneTextTitle1Style}"
                       Text="about" />
        </StackPanel>

        <Grid x:Name="ContentPanel"
              Grid.RowSpan="2"
              Margin="12,160,12,1">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition />
            </Grid.RowDefinitions>

            <StackPanel>
                <TextBlock Margin="12,0,12,0"
                           FontFamily="{StaticResource PhoneFontFamilySemiBold}"
                           FontSize="{StaticResource PhoneFontSizeLarge}"
                           Text="{Binding ApplicationName,
                                          ElementName=Root}" />

                <StackPanel Orientation="Horizontal">
                    <TextBlock Margin="12,0,12,0"
                               FontSize="{StaticResource PhoneFontSizeNormal}"
                               Text="Version number" />
                    <TextBlock Margin="12,0,12,0"
                               FontSize="{StaticResource PhoneFontSizeNormal}"
                               Text="{Binding Version,
                                              ElementName=Root}" />
                </StackPanel>
            </StackPanel>

            <TextBlock Grid.Row="1"
                       Margin="12,24,12,24"
                       FontSize="{StaticResource PhoneFontSizeNormal}"
                       Foreground="{StaticResource PhoneSubtleBrush}"
                       TextWrapping="Wrap">
                This application show an 'About page' sample for Windows Phone applications.
                <LineBreak />
                See more about it, please see the following reference:&quot;
            </TextBlock>
            <HyperlinkButton Grid.Row="2"
                             Margin="0,12,0,0"
                             HorizontalAlignment="Left"
                             Command="{Binding SendAnEmailCommand}"
                             Content="technical support/feedback email"
                             FontSize="{StaticResource PhoneFontSizeNormal}"
                             Foreground="{StaticResource PhoneAccentBrush}" />
            <HyperlinkButton Grid.Row="3"
                             Margin="0,12,0,0"
                             HorizontalAlignment="Left"
                             Command="{Binding RateThisAppCommand}"
                             Content="rate this app"
                             FontSize="{StaticResource PhoneFontSizeNormal}"
                             Foreground="{StaticResource PhoneAccentBrush}" />
            <StackPanel Grid.Row="4"
                        Margin="12,0,12,50"
                        VerticalAlignment="Bottom">
                <Image HorizontalAlignment="Left"
                       Source="Images/CompanyLogo.png"
                       Stretch="None" />
                <TextBlock Margin="0,12,0,0"
                           FontSize="{StaticResource PhoneFontSizeNormal}"
                           Text="Copyright (c) 2013 Nokia Developer Wiki." />
                <TextBlock FontSize="{StaticResource PhoneFontSizeNormal}" Text="Nokia" />
            </StackPanel>
        </Grid>
    </Grid>

</phone:PhoneApplicationPage>